package com.mall.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class Goods extends BaseEntity{

    @ApiModelProperty("id标识")
    private Integer goodsId;

    @NotBlank
    @ApiModelProperty("物品名称")
    private String goodsName;

    @NotBlank
    @ApiModelProperty("图片路径")
    private String picUrl;

    @NotBlank
    @ApiModelProperty("介绍")
    private String introduce;

    @NotBlank
    @ApiModelProperty("简称")
    private String shortGoodsName;

    @NotBlank
    @ApiModelProperty("详情")
    private String details;

    @NotBlank
    @ApiModelProperty("分类名称")
    private String categoryName;

    @ApiModelProperty("标签")
    private String label;

    @ApiModelProperty("标签集合")
    private List<String> labelList;

    @ApiModelProperty("价格 , 保留两位小数")
    private Float price;

    @ApiModelProperty("折扣")
    private Float discount;

    @ApiModelProperty("秒杀价格")
    private Float lowPrice;

    @ApiModelProperty("状态 1.正常 2.秒杀 3.下架")
    private Integer goodsStatus;

    @ApiModelProperty("库存")
    private Integer repertory;

    @ApiModelProperty
    private Integer saleNumber;


    @ApiModelProperty("查询时携带 , 查询出数据的数量")
    private Integer count;

    @ApiModelProperty("查询时携带 , 是否按照销量排序 , true 是按销量排序")
    private String con;

    @ApiModelProperty("响应给前端 , 当前商品是否被用户收藏")
    private boolean favorite;
}